248-383-5611
Note: Mac installation of this software is much more involved – contact Charlie for instructions.
The project is maintained on Github.
These procedures in the document install the following software and was tested on 10/17/23:
Appendix: Editing the PATH Environment
The installation procedures will do the following that might require higher administrative access to your computer than your user account has:
This section is useful for this installation and for any programming you do on your computer.
Note: images in this document can be resized by clicking on them
1) Open a File Explorer window and in...
Windows 10: Click View ➔ Options ➔ Change folder and search options
Accessing folder options in Windows 10
Windows 11: click 3 dots ( … ) ➔ Options
Accessing folder options in Windows 11
2) Both Windows 10 and 11:
Showing hidden files and hiding extensions
You can use the default installation options for all applications.
Steps 1-4 are only needed for TMB, step 5 is only needed for ADMB, steps 6 and 7 are needed for both ADMB and TMB.
Note: the same procedures will work if you want emacs to be the default program for CPP files
Translate, Build, and Run buttons in ADMB. This view is from ADMB 12.3 -- the view from 13.1 is slightly different
Clean, Compile, and Run buttons in TMB
If you see this message when compiling a TMB program:
Warning message:
In checkMatrixPackageVersion() : Package version inconsistency detected.
TMB was built with Matrix version 1.5.4.1
Current Matrix version is 1.5.4
Please re-install 'TMB' from source using install.packages('TMB', type = 'source') or ask CRAN for a binary version of 'TMB' matching CRAN's 'Matrix' package
using C++ compiler: 'G__~1.EXE (GCC) 12.2.0'
Do not follow the instructions given. Instead just update or reinstall the outdated package (in this case, Matrix). This is only necessary if the the script does not work because of the outdated package.
The User Environment PATH variable is not needed anymore. I added this to the emacs configuration files.
However, there is still a chance that the User Environment PATH has been set by a previously installed program and that PATH could interfere with ADMB and TMB's operation. This is most likely only going to be true if you previously installed ADStudio.
You can see the User Environment PATH by doing a Windows search for Environment and choosing Edit the system environment variables.
That will open the System Properties window on the Advanced tab-- click on the Environment... button:
The Advanced System Properties tab
Then double-click on Path in the User variables section:
Path variables
Delete any references to older versions of ADMB, TMB, or ADStudio. You can also safely delete the references to the current ADMB version -- they are not needed.
The extracted folder ADMB-TMB-Install-main contains:
PATH.bat is a batch file that copies the emacs configuration files and admb2r.cpp to the correct locations.
The following are instructions to manually copy the files -- this is only needed if PATH.bat does not work.
Inside ADMB-TMB-Install-main, there is a folder named emacsConfigFiles. You need to copy the contents inside the emacsConfigFiles folder (a file named .emacs and a folder named emacs) to the user’s appdata folder.
The easiest way to get to the user's appdata folder is to type %appdata% in a File Explorer window and hit enter. Or, you can go directly to the folder: C:\Users\<yourUserName>\AppData\Roaming. Move both the emacs folder and .emacs file to this folder:
Location to copy the emacs configuration files
The file admb2r.cpp is used in ADMB scripts but it does not come with ADMB.
You can add it to ADMB by copying admb2r.cpp from the ADMB-TMB-Install-main folder to the following locations:
Note: If you are using a different version of ADMB then replace 13.1 with the version you are using